#include "./WizAccessorLittleEndian.hpp"
#include "./WizAccessorBigEndian.hpp"
#include "./WizAccessorFile.hpp"
#include "./WizAccessorBuffer.hpp"
#include "../../../Include/Core/File/WizFile.hpp"

namespace Wiz
{
    namespace Accessor
    {
        ///===================================///

        ::Wiz::Accessor::Ptr Create(::Wiz::File::Ptr InFilePtr)
        {
            return new ::Wiz::Accessor::File::Type(InFilePtr);
        }

        ::Wiz::Accessor::Ptr Create(::Wiz::ByteBuffer::Ref InBufferRef)
        {
            return new ::Wiz::Accessor::Buffer::Type(&InBufferRef);
        }

        ::Wiz::Void::Type Destory(::Wiz::Accessor::Ptr APtr)
        {
            delete APtr;
        }
    } /// end of namespace Accessor
} /// end of namespace Wiz

